<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkComboBox</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
<link rel="home" href="index.html" title="GTK+ 3 参考手册">
<link rel="up" href="MenusAndCombos.html" title="菜单、组合框和工具栏">
<link rel="prev" href="MenusAndCombos.html" title="菜单、组合框和工具栏">
<link rel="next" href="gtk3-GtkComboBoxText.html" title="GtkComboBoxText">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="MenusAndCombos.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="MenusAndCombos.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ 3 参考手册</th>
<td><a accesskey="n" href="gtk3-GtkComboBoxText.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#gtk3-GtkComboBox.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#gtk3-GtkComboBox.description" class="shortcut">Description</a>
</td></tr>
</table>
<div class="refentry">
<a name="gtk3-GtkComboBox"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="gtk3-GtkComboBox.top_of_page"></a>GtkComboBox</span></h2>
<p>GtkComboBox — A widget used to choose from a list of items</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<a name="gtk3-GtkComboBox.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtk.h&gt;

struct              <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox">GtkComboBox</a>;
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-new" title="gtk_combo_box_new ()">gtk_combo_box_new</a>                   (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-new-with-entry" title="gtk_combo_box_new_with_entry ()">gtk_combo_box_new_with_entry</a>        (<em class="parameter"><code><span class="type">void</span></code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-new-with-model" title="gtk_combo_box_new_with_model ()">gtk_combo_box_new_with_model</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> *model</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-new-with-model-and-entry" title="gtk_combo_box_new_with_model_and_entry ()">gtk_combo_box_new_with_model_and_entry</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> *model</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-new-with-area" title="gtk_combo_box_new_with_area ()">gtk_combo_box_new_with_area</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="type">GtkCellArea</span></a> *area</code></em>);
<a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-new-with-area-and-entry" title="gtk_combo_box_new_with_area_and_entry ()">gtk_combo_box_new_with_area_and_entry</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="type">GtkCellArea</span></a> *area</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-wrap-width" title="gtk_combo_box_get_wrap_width ()">gtk_combo_box_get_wrap_width</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-wrap-width" title="gtk_combo_box_set_wrap_width ()">gtk_combo_box_set_wrap_width</a>        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-row-span-column" title="gtk_combo_box_get_row_span_column ()">gtk_combo_box_get_row_span_column</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-row-span-column" title="gtk_combo_box_set_row_span_column ()">gtk_combo_box_set_row_span_column</a>   (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row_span</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-column-span-column" title="gtk_combo_box_get_column_span_column ()">gtk_combo_box_get_column_span_column</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-column-span-column" title="gtk_combo_box_set_column_span_column ()">gtk_combo_box_set_column_span_column</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> column_span</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-active" title="gtk_combo_box_get_active ()">gtk_combo_box_get_active</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-active" title="gtk_combo_box_set_active ()">gtk_combo_box_set_active</a>            (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> index_</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-active-iter" title="gtk_combo_box_get_active_iter ()">gtk_combo_box_get_active_iter</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeIter" title="struct GtkTreeIter"><span class="type">GtkTreeIter</span></a> *iter</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-active-iter" title="gtk_combo_box_set_active_iter ()">gtk_combo_box_set_active_iter</a>       (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeIter" title="struct GtkTreeIter"><span class="type">GtkTreeIter</span></a> *iter</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-id-column" title="gtk_combo_box_get_id_column ()">gtk_combo_box_get_id_column</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-id-column" title="gtk_combo_box_set_id_column ()">gtk_combo_box_set_id_column</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id_column</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-active-id" title="gtk_combo_box_get_active_id ()">gtk_combo_box_get_active_id</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-active-id" title="gtk_combo_box_set_active_id ()">gtk_combo_box_set_active_id</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *active_id</code></em>);
<a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="returnvalue">GtkTreeModel</span></a> *      <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-model" title="gtk_combo_box_get_model ()">gtk_combo_box_get_model</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-model" title="gtk_combo_box_set_model ()">gtk_combo_box_set_model</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> *model</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-popup-for-device" title="gtk_combo_box_popup_for_device ()">gtk_combo_box_popup_for_device</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a> *device</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-popup" title="gtk_combo_box_popup ()">gtk_combo_box_popup</a>                 (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-popdown" title="gtk_combo_box_popdown ()">gtk_combo_box_popdown</a>               (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<a href="../atk/AtkObject.html"><span class="returnvalue">AtkObject</span></a> *         <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-popup-accessible" title="gtk_combo_box_get_popup_accessible ()">gtk_combo_box_get_popup_accessible</a>  (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<a class="link" href="gtk3-GtkTreeView.html#GtkTreeViewRowSeparatorFunc" title="GtkTreeViewRowSeparatorFunc ()"><span class="returnvalue">GtkTreeViewRowSeparatorFunc</span></a> <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-row-separator-func" title="gtk_combo_box_get_row_separator_func ()">gtk_combo_box_get_row_separator_func</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-row-separator-func" title="gtk_combo_box_set_row_separator_func ()">gtk_combo_box_set_row_separator_func</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeView.html#GtkTreeViewRowSeparatorFunc" title="GtkTreeViewRowSeparatorFunc ()"><span class="type">GtkTreeViewRowSeparatorFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-add-tearoffs" title="gtk_combo_box_set_add_tearoffs ()">gtk_combo_box_set_add_tearoffs</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> add_tearoffs</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-add-tearoffs" title="gtk_combo_box_get_add_tearoffs ()">gtk_combo_box_get_add_tearoffs</a>      (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-title" title="gtk_combo_box_set_title ()">gtk_combo_box_set_title</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);
const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-title" title="gtk_combo_box_get_title ()">gtk_combo_box_get_title</a>             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-focus-on-click" title="gtk_combo_box_set_focus_on_click ()">gtk_combo_box_set_focus_on_click</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> focus_on_click</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-focus-on-click" title="gtk_combo_box_get_focus_on_click ()">gtk_combo_box_get_focus_on_click</a>    (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-button-sensitivity" title="gtk_combo_box_set_button_sensitivity ()">gtk_combo_box_set_button_sensitivity</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkRange.html#GtkSensitivityType" title="enum GtkSensitivityType"><span class="type">GtkSensitivityType</span></a> sensitivity</code></em>);
<a class="link" href="gtk3-GtkRange.html#GtkSensitivityType" title="enum GtkSensitivityType"><span class="returnvalue">GtkSensitivityType</span></a>  <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-button-sensitivity" title="gtk_combo_box_get_button_sensitivity ()">gtk_combo_box_get_button_sensitivity</a>
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-has-entry" title="gtk_combo_box_get_has_entry ()">gtk_combo_box_get_has_entry</a>         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-entry-text-column" title="gtk_combo_box_set_entry_text_column ()">gtk_combo_box_set_entry_text_column</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> text_column</code></em>);
<a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-entry-text-column" title="gtk_combo_box_get_entry_text_column ()">gtk_combo_box_get_entry_text_column</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-popup-fixed-width" title="gtk_combo_box_set_popup_fixed_width ()">gtk_combo_box_set_popup_fixed_width</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fixed</code></em>);
<a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-get-popup-fixed-width" title="gtk_combo_box_get_popup_fixed_width ()">gtk_combo_box_get_popup_fixed_width</a> (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="gtk3-GtkComboBox.description"></a><h2>Description</h2>
<p>
A GtkComboBox is a widget that allows the user to choose from a list of
valid choices. The GtkComboBox displays the selected choice. When
activated, the GtkComboBox displays a popup which allows the user to
make a new choice. The style in which the selected value is displayed,
and the style of the popup is determined by the current theme. It may
be similar to a Windows-style combo box.
</p>
<p>
The GtkComboBox uses the model-view pattern; the list of valid choices
is specified in the form of a tree model, and the display of the choices
can be adapted to the data in the model by using cell renderers, as you
would in a tree view. This is possible since GtkComboBox implements the
<a class="link" href="gtk3-GtkCellLayout.html#GtkCellLayout" title="GtkCellLayout"><span class="type">GtkCellLayout</span></a> interface. The tree model holding the valid choices is
not restricted to a flat list, it can be a real tree, and the popup will
reflect the tree structure.
</p>
<p>
To allow the user to enter values not in the model, the 'has-entry'
property allows the GtkComboBox to contain a <a class="link" href="gtk3-GtkEntry.html#GtkEntry" title="struct GtkEntry"><span class="type">GtkEntry</span></a>. This entry
can be accessed by calling <a class="link" href="gtk3-GtkBin.html#gtk-bin-get-child" title="gtk_bin_get_child ()"><code class="function">gtk_bin_get_child()</code></a> on the combo box.
</p>
<p>
For a simple list of textual choices, the model-view API of GtkComboBox
can be a bit overwhelming. In this case, <a class="link" href="gtk3-GtkComboBoxText.html#GtkComboBoxText" title="struct GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> offers a
simple alternative. Both GtkComboBox and <a class="link" href="gtk3-GtkComboBoxText.html#GtkComboBoxText" title="struct GtkComboBoxText"><span class="type">GtkComboBoxText</span></a> can contain
an entry.
</p>
</div>
<div class="refsect1">
<a name="gtk3-GtkComboBox.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="GtkComboBox"></a><h3>struct GtkComboBox</h3>
<pre class="programlisting">struct GtkComboBox {
  GtkBin parent_instance;
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-new"></a><h3>gtk_combo_box_new ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_combo_box_new                   (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new empty <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-new-with-entry"></a><h3>gtk_combo_box_new_with_entry ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_combo_box_new_with_entry        (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new empty <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> with an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-new-with-model"></a><h3>gtk_combo_box_new_with_model ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_combo_box_new_with_model        (<em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> *model</code></em>);</pre>
<p>
Creates a new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> with the model initialized to <em class="parameter"><code>model</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-new-with-model-and-entry"></a><h3>gtk_combo_box_new_with_model_and_entry ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_combo_box_new_with_model_and_entry
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> *model</code></em>);</pre>
<p>
Creates a new empty <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> with an entry
and with the model initialized to <em class="parameter"><code>model</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-new-with-area"></a><h3>gtk_combo_box_new_with_area ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_combo_box_new_with_area         (<em class="parameter"><code><a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="type">GtkCellArea</span></a> *area</code></em>);</pre>
<p>
Creates a new empty <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> using <em class="parameter"><code>area</code></em> to layout cells.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>area</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="type">GtkCellArea</span></a> to use to layout cell renderers</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-new-with-area-and-entry"></a><h3>gtk_combo_box_new_with_area_and_entry ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkWidget.html#GtkWidget" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_combo_box_new_with_area_and_entry
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="type">GtkCellArea</span></a> *area</code></em>);</pre>
<p>
Creates a new empty <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> with an entry.
</p>
<p>
The new combo box will use <em class="parameter"><code>area</code></em> to layout cells.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>area</code></em> :</span></p></td>
<td>the <a class="link" href="gtk3-GtkCellArea.html#GtkCellArea" title="struct GtkCellArea"><span class="type">GtkCellArea</span></a> to use to layout cell renderers</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A new <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-wrap-width"></a><h3>gtk_combo_box_get_wrap_width ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_combo_box_get_wrap_width        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the wrap width which is used to determine the number of columns
for the popup menu. If the wrap width is larger than 1, the combo box
is in table mode.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the wrap width.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-wrap-width"></a><h3>gtk_combo_box_set_wrap_width ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_wrap_width        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> width</code></em>);</pre>
<p>
Sets the wrap width of <em class="parameter"><code>combo_box</code></em> to be <em class="parameter"><code>width</code></em>. The wrap width is basically
the preferred number of columns when you want the popup to be layed out
in a table.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
<td>Preferred number of columns</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-row-span-column"></a><h3>gtk_combo_box_get_row_span_column ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_combo_box_get_row_span_column   (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the column with row span information for <em class="parameter"><code>combo_box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the row span column.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-row-span-column"></a><h3>gtk_combo_box_set_row_span_column ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_row_span_column   (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row_span</code></em>);</pre>
<p>
Sets the column with row span information for <em class="parameter"><code>combo_box</code></em> to be <em class="parameter"><code>row_span</code></em>.
The row span column contains integers which indicate how many rows
an item should span.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>row_span</code></em> :</span></p></td>
<td>A column in the model passed during construction.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-column-span-column"></a><h3>gtk_combo_box_get_column_span_column ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_combo_box_get_column_span_column
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the column with column span information for <em class="parameter"><code>combo_box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the column span column.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-column-span-column"></a><h3>gtk_combo_box_set_column_span_column ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_column_span_column
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> column_span</code></em>);</pre>
<p>
Sets the column with column span information for <em class="parameter"><code>combo_box</code></em> to be
<em class="parameter"><code>column_span</code></em>. The column span column contains integers which indicate
how many columns an item should span.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>column_span</code></em> :</span></p></td>
<td>A column in the model passed during construction</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-active"></a><h3>gtk_combo_box_get_active ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_combo_box_get_active            (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the index of the currently active item, or -1 if there's no
active item. If the model is a non-flat treemodel, and the active item
is not an immediate child of the root of the tree, this function returns
<code class="literal">gtk_tree_path_get_indices (path)[0]</code>, where
<code class="literal">path</code> is the <a class="link" href="gtk3-GtkTreeModel.html#GtkTreePath" title="GtkTreePath"><span class="type">GtkTreePath</span></a> of the active item.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>An integer which is the index of the currently active item,
or -1 if there's no active item.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-active"></a><h3>gtk_combo_box_set_active ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_active            (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> index_</code></em>);</pre>
<p>
Sets the active item of <em class="parameter"><code>combo_box</code></em> to be the item at <em class="parameter"><code>index</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>index_</code></em> :</span></p></td>
<td>An index in the model passed during construction, or -1 to have
no active item</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-active-iter"></a><h3>gtk_combo_box_get_active_iter ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_combo_box_get_active_iter       (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeIter" title="struct GtkTreeIter"><span class="type">GtkTreeIter</span></a> *iter</code></em>);</pre>
<p>
Sets <em class="parameter"><code>iter</code></em> to point to the current active item, if it exists.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>The uninitialized <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeIter" title="struct GtkTreeIter"><span class="type">GtkTreeIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, if <em class="parameter"><code>iter</code></em> was set</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-active-iter"></a><h3>gtk_combo_box_set_active_iter ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_active_iter       (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeIter" title="struct GtkTreeIter"><span class="type">GtkTreeIter</span></a> *iter</code></em>);</pre>
<p>
Sets the current active item to be the one referenced by <em class="parameter"><code>iter</code></em>, or
unsets the active item if <em class="parameter"><code>iter</code></em> is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
<td>The <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeIter" title="struct GtkTreeIter"><span class="type">GtkTreeIter</span></a>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-id-column"></a><h3>gtk_combo_box_get_id_column ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_combo_box_get_id_column         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the column which <em class="parameter"><code>combo_box</code></em> is using to get string IDs
for values from.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A column in the data source model of <em class="parameter"><code>combo_box</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-id-column"></a><h3>gtk_combo_box_set_id_column ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_id_column         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> id_column</code></em>);</pre>
<p>
Sets the model column which <em class="parameter"><code>combo_box</code></em> should use to get string IDs
for values from. The column <em class="parameter"><code>id_column</code></em> in the model of <em class="parameter"><code>combo_box</code></em>
must be of type <a href="../gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"><code class="literal">G_TYPE_STRING</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>id_column</code></em> :</span></p></td>
<td>A column in <em class="parameter"><code>model</code></em> to get string IDs for values from</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-active-id"></a><h3>gtk_combo_box_get_active_id ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_combo_box_get_active_id         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the ID of the active row of <em class="parameter"><code>combo_box</code></em>.  This value is taken
from the active row and the column specified by the 'id-column'
property of <em class="parameter"><code>combo_box</code></em> (see <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-id-column" title="gtk_combo_box_set_id_column ()"><code class="function">gtk_combo_box_set_id_column()</code></a>).
</p>
<p>
The returned value is an interned string which means that you can
compare the pointer by value to other interned strings and that you
must not free it.
</p>
<p>
If the 'id-column' property of <em class="parameter"><code>combo_box</code></em> is not set or if no row is
selected then <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the ID of the active row, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-active-id"></a><h3>gtk_combo_box_set_active_id ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_active_id         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *active_id</code></em>);</pre>
<p>
Changes the active row of <em class="parameter"><code>combo_box</code></em> to the one that has an ID equal to <em class="parameter"><code>id</code></em>.
</p>
<p>
If the 'id-column' property of <em class="parameter"><code>combo_box</code></em> is unset or if no row has
the given ID then nothing happens.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>active_id</code></em> :</span></p></td>
<td>the ID of the row to select</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-model"></a><h3>gtk_combo_box_get_model ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="returnvalue">GtkTreeModel</span></a> *      gtk_combo_box_get_model             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> which is acting as data source for <em class="parameter"><code>combo_box</code></em>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> which was passed
during construction. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-model"></a><h3>gtk_combo_box_set_model ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_model             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a> *model</code></em>);</pre>
<p>
Sets the model used by <em class="parameter"><code>combo_box</code></em> to be <em class="parameter"><code>model</code></em>. Will unset a previously set
model (if applicable). If model is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, then it will unset the model.
</p>
<p>
Note that this function does not clear the cell renderers, you have to
call <a class="link" href="gtk3-GtkCellLayout.html#gtk-cell-layout-clear" title="gtk_cell_layout_clear ()"><code class="function">gtk_cell_layout_clear()</code></a> yourself if you need to set up different
cell renderers for the new model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>model</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-popup-for-device"></a><h3>gtk_combo_box_popup_for_device ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_popup_for_device      (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a> *device</code></em>);</pre>
<p>
Pops up the menu or dropdown list of <em class="parameter"><code>combo_box</code></em>, the popup window
will be grabbed so only <em class="parameter"><code>device</code></em> and its associated pointer/keyboard
are the only <a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a>s able to send events to it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
<td>a <a href="../gdk3/GdkDevice.html"><span class="type">GdkDevice</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-popup"></a><h3>gtk_combo_box_popup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_popup                 (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Pops up the menu or dropdown list of <em class="parameter"><code>combo_box</code></em>.
</p>
<p>
This function is mostly intended for use by accessibility technologies;
applications should have little use for it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-popdown"></a><h3>gtk_combo_box_popdown ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_popdown               (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Hides the menu or dropdown list of <em class="parameter"><code>combo_box</code></em>.
</p>
<p>
This function is mostly intended for use by accessibility technologies;
applications should have little use for it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr></tbody>
</table></div>
<p class="since">Since 2.4</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-popup-accessible"></a><h3>gtk_combo_box_get_popup_accessible ()</h3>
<pre class="programlisting"><a href="../atk/AtkObject.html"><span class="returnvalue">AtkObject</span></a> *         gtk_combo_box_get_popup_accessible  (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Gets the accessible object corresponding to the combo box's popup.
</p>
<p>
This function is mostly intended for use by accessibility technologies;
applications should have little use for it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the accessible object corresponding
to the combo box's popup. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-row-separator-func"></a><h3>gtk_combo_box_get_row_separator_func ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkTreeView.html#GtkTreeViewRowSeparatorFunc" title="GtkTreeViewRowSeparatorFunc ()"><span class="returnvalue">GtkTreeViewRowSeparatorFunc</span></a> gtk_combo_box_get_row_separator_func
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the current row separator function.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current row separator function.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-row-separator-func"></a><h3>gtk_combo_box_set_row_separator_func ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_row_separator_func
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkTreeView.html#GtkTreeViewRowSeparatorFunc" title="GtkTreeViewRowSeparatorFunc ()"><span class="type">GtkTreeViewRowSeparatorFunc</span></a> func</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> data</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Datasets.html#GDestroyNotify"><span class="type">GDestroyNotify</span></a> destroy</code></em>);</pre>
<p>
Sets the row separator function, which is used to determine
whether a row should be drawn as a separator. If the row separator
function is <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, no separators are drawn. This is the default value.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>func</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkTreeView.html#GtkTreeViewRowSeparatorFunc" title="GtkTreeViewRowSeparatorFunc ()"><span class="type">GtkTreeViewRowSeparatorFunc</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
<td>user data to pass to <em class="parameter"><code>func</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
<td>destroy notifier for <em class="parameter"><code>data</code></em>, or <a href="../glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-add-tearoffs"></a><h3>gtk_combo_box_set_add_tearoffs ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_add_tearoffs      (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> add_tearoffs</code></em>);</pre>
<p>
Sets whether the popup menu should have a tearoff
menu item.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>add_tearoffs</code></em> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to add tearoff menu items</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-add-tearoffs"></a><h3>gtk_combo_box_get_add_tearoffs ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_combo_box_get_add_tearoffs      (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Gets the current value of the :add-tearoffs property.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the current value of the :add-tearoffs property.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-title"></a><h3>gtk_combo_box_set_title ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_title             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code>const <a href="../glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>);</pre>
<p>
Sets the menu's title in tearoff mode.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td>a title for the menu in tearoff mode</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-title"></a><h3>gtk_combo_box_get_title ()</h3>
<pre class="programlisting">const <a href="../glib/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *       gtk_combo_box_get_title             (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Gets the current title of the menu in tearoff mode. See
<a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-add-tearoffs" title="gtk_combo_box_set_add_tearoffs ()"><code class="function">gtk_combo_box_set_add_tearoffs()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>the menu's title in tearoff mode. This is an internal copy of the
string which must not be freed.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-focus-on-click"></a><h3>gtk_combo_box_set_focus_on_click ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_focus_on_click    (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> focus_on_click</code></em>);</pre>
<p>
Sets whether the combo box will grab focus when it is clicked with
the mouse. Making mouse clicks not grab focus is useful in places
like toolbars where you don't want the keyboard focus removed from
the main area of the application.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>focus_on_click</code></em> :</span></p></td>
<td>whether the combo box grabs focus when clicked
with the mouse</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-focus-on-click"></a><h3>gtk_combo_box_get_focus_on_click ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_combo_box_get_focus_on_click    (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo</code></em>);</pre>
<p>
Returns whether the combo box grabs focus when it is clicked
with the mouse. See <a class="link" href="gtk3-GtkComboBox.html#gtk-combo-box-set-focus-on-click" title="gtk_combo_box_set_focus_on_click ()"><code class="function">gtk_combo_box_set_focus_on_click()</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the combo box grabs focus when it is
clicked with the mouse.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-button-sensitivity"></a><h3>gtk_combo_box_set_button_sensitivity ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_button_sensitivity
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a class="link" href="gtk3-GtkRange.html#GtkSensitivityType" title="enum GtkSensitivityType"><span class="type">GtkSensitivityType</span></a> sensitivity</code></em>);</pre>
<p>
Sets whether the dropdown button of the combo box should be
always sensitive (<a class="link" href="gtk3-GtkRange.html#GTK-SENSITIVITY-ON:CAPS"><code class="literal">GTK_SENSITIVITY_ON</code></a>), never sensitive (<a class="link" href="gtk3-GtkRange.html#GTK-SENSITIVITY-OFF:CAPS"><code class="literal">GTK_SENSITIVITY_OFF</code></a>)
or only if there is at least one item to display (<a class="link" href="gtk3-GtkRange.html#GTK-SENSITIVITY-AUTO:CAPS"><code class="literal">GTK_SENSITIVITY_AUTO</code></a>).
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>sensitivity</code></em> :</span></p></td>
<td>specify the sensitivity of the dropdown button</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-button-sensitivity"></a><h3>gtk_combo_box_get_button_sensitivity ()</h3>
<pre class="programlisting"><a class="link" href="gtk3-GtkRange.html#GtkSensitivityType" title="enum GtkSensitivityType"><span class="returnvalue">GtkSensitivityType</span></a>  gtk_combo_box_get_button_sensitivity
                                                        (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns whether the combo box sets the dropdown button
sensitive or not when there are no items in the model.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a class="link" href="gtk3-GtkRange.html#GTK-SENSITIVITY-ON:CAPS"><code class="literal">GTK_SENSITIVITY_ON</code></a> if the dropdown button
is sensitive when the model is empty, <a class="link" href="gtk3-GtkRange.html#GTK-SENSITIVITY-OFF:CAPS"><code class="literal">GTK_SENSITIVITY_OFF</code></a>
if the button is always insensitive or
<a class="link" href="gtk3-GtkRange.html#GTK-SENSITIVITY-AUTO:CAPS"><code class="literal">GTK_SENSITIVITY_AUTO</code></a> if it is only sensitive as long as
the model has one item to be selected.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.14</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-has-entry"></a><h3>gtk_combo_box_get_has_entry ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_combo_box_get_has_entry         (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns whether the combo box has an entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>whether there is an entry in <em class="parameter"><code>combo_box</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-entry-text-column"></a><h3>gtk_combo_box_set_entry_text_column ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_entry_text_column (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> text_column</code></em>);</pre>
<p>
Sets the model column which <em class="parameter"><code>combo_box</code></em> should use to get strings from
to be <em class="parameter"><code>text_column</code></em>. The column <em class="parameter"><code>text_column</code></em> in the model of <em class="parameter"><code>combo_box</code></em>
must be of type <a href="../gobject/gobject-Type-Information.html#G-TYPE-STRING:CAPS"><code class="literal">G_TYPE_STRING</code></a>.
</p>
<p>
This is only relevant if <em class="parameter"><code>combo_box</code></em> has been created with
<span class="type">"has-entry"</span> as <a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>text_column</code></em> :</span></p></td>
<td>A column in <em class="parameter"><code>model</code></em> to get the strings from for
the internal entry</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-entry-text-column"></a><h3>gtk_combo_box_get_entry_text_column ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_combo_box_get_entry_text_column (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Returns the column which <em class="parameter"><code>combo_box</code></em> is using to get the strings
from to display in the internal entry.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>A <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A column in the data source model of <em class="parameter"><code>combo_box</code></em>.</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.24</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-set-popup-fixed-width"></a><h3>gtk_combo_box_set_popup_fixed_width ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_combo_box_set_popup_fixed_width (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>,
                                                         <em class="parameter"><code><a href="../glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> fixed</code></em>);</pre>
<p>
Specifies whether the popup's width should be a fixed width
matching the allocated width of the combo box.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>fixed</code></em> :</span></p></td>
<td>whether to use a fixed popup width</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gtk-combo-box-get-popup-fixed-width"></a><h3>gtk_combo_box_get_popup_fixed_width ()</h3>
<pre class="programlisting"><a href="../glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_combo_box_get_popup_fixed_width (<em class="parameter"><code><a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a> *combo_box</code></em>);</pre>
<p>
Gets whether the popup uses a fixed width matching
the allocated width of the combo box.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>combo_box</code></em> :</span></p></td>
<td>a <a class="link" href="gtk3-GtkComboBox.html#GtkComboBox" title="struct GtkComboBox"><span class="type">GtkComboBox</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<a href="../glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the popup uses a fixed width</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 3.0</p>
</div>
</div>
<div class="refsect1">
<a name="gtk3-GtkComboBox.see-also"></a><h2>See Also</h2>
<a class="link" href="gtk3-GtkComboBoxText.html#GtkComboBoxText" title="struct GtkComboBoxText"><span class="type">GtkComboBoxText</span></a>, <a class="link" href="gtk3-GtkTreeModel.html#GtkTreeModel" title="GtkTreeModel"><span class="type">GtkTreeModel</span></a>, <a class="link" href="gtk3-GtkCellRenderer.html#GtkCellRenderer" title="struct GtkCellRenderer"><span class="type">GtkCellRenderer</span></a>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>